﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using System.IO;
using Imaginecup.util;

namespace Imaginecup.gameState.malaria.component.children
{
    //public class MovePatternFactory
    //{
    //    private  List<MovePattern> m_PatternList = new List<MovePattern>();

    //    private static MovePatternFactory m_MovePatternFactory = null;
    //    private MovePatternFactory(){}        

    //    public static MovePatternFactory GetPatternFactory()
    //    {
    //        if (m_MovePatternFactory == null)
    //            m_MovePatternFactory = new MovePatternFactory();
    //        return m_MovePatternFactory;
    //    }

    //    public void LoadPattern()
    //    {
           
    //        MovePattern movePattern = new MovePattern();

    //        movePattern.SetVelocity(110);

    //        movePattern.AddDest(new Vector2( 310 , 200));
    //        movePattern.AddDest(new Vector2(700 , 10));
    //        movePattern.AddDest(new Vector2(700 , 400));
    //        movePattern.AddDest(new Vector2(-30 , 400));

    //        m_PatternList.Add(movePattern);


    //        //MovePattern movePattern2 = new MovePattern();

    //        //movePattern2.AddDest(new Vector2());
    //        //movePattern2.AddDest(new Vector2());
    //        //movePattern2.AddDest(new Vector2());
    //        //movePattern2.AddDest(new Vector2());
    //        //movePattern2.AddDest(new Vector2());

    //        //m_PatternList.Add(movePattern2);



    //        //MovePattern movePattern3 = new MovePattern();

    //        //movePattern3.AddDest(new Vector2());
    //        //movePattern3.AddDest(new Vector2());
    //        //movePattern3.AddDest(new Vector2());
    //        //movePattern3.AddDest(new Vector2());
    //        //movePattern3.AddDest(new Vector2());

    //        //m_PatternList.Add(movePattern3);



    //        //MovePattern movePattern4 = new MovePattern();

    //        //movePattern4.AddDest(new Vector2());
    //        //movePattern4.AddDest(new Vector2());
    //        //movePattern4.AddDest(new Vector2());
    //        //movePattern4.AddDest(new Vector2());
    //        //movePattern4.AddDest(new Vector2());

    //        //m_PatternList.Add(movePattern4);



    //        //MovePattern movePattern5 = new MovePattern();

    //        //movePattern5.AddDest(new Vector2());
    //        //movePattern5.AddDest(new Vector2());
    //        //movePattern5.AddDest(new Vector2());
    //        //movePattern5.AddDest(new Vector2());
    //        //movePattern5.AddDest(new Vector2());

    //        //m_PatternList.Add(movePattern5);


    //        //MovePattern movePattern6 = new MovePattern();

    //        //movePattern6.AddDest(new Vector2());
    //        //movePattern6.AddDest(new Vector2());
    //        //movePattern6.AddDest(new Vector2());
    //        //movePattern6.AddDest(new Vector2());
    //        //movePattern6.AddDest(new Vector2());

    //        //m_PatternList.Add(movePattern6);

    //    }

    //    public void Release()
    //    {
    //        foreach (MovePattern p in m_PatternList)
    //            p.Clear();

    //        m_PatternList.Clear();
    //    }

    //    public MovePattern GetRandomPattern()
    //    {
    //        return m_PatternList[RandomUtil.rand.Next( m_PatternList.Count ) ];
    //    }

    //}
}
